//
//  SuccessLoginViewCell.m
//  FloatClouds
//
//  Created by 黄威 on 16/8/29.
//  Copyright © 2016年 黄威. All rights reserved.
//

#import "SuccessLoginViewCell.h"

@implementation SuccessLoginViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{

    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    
    
    if (self) {
        
        self.labelOfName = [[UILabel alloc]init];
        self.labelOfName.numberOfLines = 1;
        self.labelOfName.font = [UIFont fontWithName:@"beirut" size:16];
        [self.contentView addSubview:self.labelOfName];
        
        self.imageViewOfAvatar = [[UIImageView alloc]init];
        self.imageViewOfAvatar.layer.masksToBounds = YES;
        self.imageViewOfAvatar.layer.cornerRadius = 60.0;
        [self.contentView addSubview:self.imageViewOfAvatar];
        
        self.labelOfCards = [[UILabel alloc]init];
        self.labelOfCards.font = [UIFont fontWithName:@"beirut" size:12];
        [self.contentView addSubview:self.labelOfCards];
        
        self.labelOfLevel = [[UILabel alloc]init];
        self.labelOfLevel.font = [UIFont fontWithName:@"beirut" size:12];
        [self.contentView addSubview:self.labelOfLevel];
        
        self.labelOfGiftCards = [[UILabel alloc]init];
        self.labelOfGiftCards.font = [UIFont fontWithName:@"beirut" size:12];
        [self.contentView addSubview:self.labelOfGiftCards];
        
        self.labelGiftCard = [[UILabel alloc]init];
        self.labelGiftCard.text = @"我的礼券:";
        [self.contentView addSubview:self.labelGiftCard];
        
        self.labelCard = [[UILabel alloc]init];
        self.labelCard.text = @"我的抽奖卡:";
        [self.contentView addSubview:self.labelCard];
        
    }
    
    return self;
   

}

- (void)layoutSubviews{

    [super layoutSubviews];
    
    self.imageViewOfAvatar.frame = CGRectMake(0, 20, 120, 120);
    self.labelOfName.frame = CGRectMake(150, 20, 100, 40);
    self.labelOfLevel.frame = CGRectMake(240, 20, 70, 40);
    
    
    
    self.labelGiftCard.frame = CGRectMake(150, 70, 120, 30);
    self.labelOfGiftCards.frame = CGRectMake(280, 70, 30, 30);
    
    self.labelCard.frame = CGRectMake(150,110,120,30);
    self.labelOfCards.frame = CGRectMake(280,110,30,30);



}



@end
